package com.wufan.day03;

/**
 * 关于变量的赋值
 * @author SongWufan
 * @date 2021/3/7 23:24
 */
public class ValueTransferTest {
    public static void main(String[] args) {
        int m = 10;
        int n = m;
        System.out.println("m"+m+"n"+n);
        n = 20;
        System.out.println("m"+m+"n"+n);

        Order o1 = new Order();
        o1.orderId = 1001;
        Order o2 = o1;
        System.out.println(o1.orderId+"\t"+o2.orderId);
        o2.orderId = 1002;
        System.out.println(o1.orderId+"\t"+o2.orderId);
    }
}

class Order{
    int orderId;

}
